package com.enjoyor.soa.traffic.core.efoms.mapper;

import com.enjoyor.soa.traffic.core.efoms.domain.RepairsInfo;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.IBaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

import java.util.List;
import java.util.Map;

public interface IRepairsInfoMapper  extends IBaseMapper<RepairsInfo> {
	 @SuppressWarnings("rawtypes")
    Page selectRepairsInfoPage(Page page);
	    
	List<RepairsInfo> selectRepairsInfoList(Map<String, Object> map);

	/**
	 * 查询当日报修申请的数量
	 * @return
	 */
	int countApplyRepairsInfo(String startTime,String endTime);

	/**
	 * 查询当日产生催办记录的报修申请单数量
	 * @return
	 */
	int countRepPressInfo(String startTime,String endTime);
	
	List<RepairsInfo> getRepCountForDeptIdAndSum();
	
	List<RepairsInfo> getRepSourceCount(Map<String, Object> map);
	
	List<RepairsInfo> getRepSourceCountForDept(Map<String, Object> map);

}